﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OInspectionList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OInspectionList" %>

<form id="pagerForm" method="post" action="MacModel/OInspectionList.aspx">
<input type="hidden" name="t" value="<%=t %>" />
<input type="hidden" name="MachineType" value="<%=MachineType %>" />
<input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
<input type="hidden" name="DownlineDateFrom" value="<%=DownlineDateFrom %>" />
<input type="hidden" name="DownlineDateTo" value="<%=DownlineDateTo %>" />
<input type="hidden" name="DJNGItemCode" value="<%=DJNGItemCode %>" />
<input type="hidden" name="BZNGItemCode" value="<%=BZNGItemCode %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="MacModel/OInspectionList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    <input type="hidden" name="t" value="<%=t %>" />
                   机型:
                </td>
                <td>
                    <%=GetMacType("select","MachineType",MachineType) %>
                </td>
                <td>                    
                      机号:
                </td>
                <td>
                   <input name="SerialNumber" type="text" value="<%=SerialNumber %>"  /> 
                </td>
                
                <td>
                     检查时间:
                </td>
                <td>
                    从<input name="DownlineDateFrom" class="date" type="text" value="<%=DownlineDateFrom %>"  />到<input name="DownlineDateTo" type="text" class="date" value="<%=DownlineDateTo %>"  />
                </td>
                <td> 
                   <div class="subBar">
                    <ul>
                        <li>
                            <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                        </li>
                    </ul>
                  </div>
                </td>
            </tr>
           <%-- <tr>
                <td>
                    点检NG项目：
                </td>
                <td>
                    <input name="DJNGItemCode" type="text" class="autocomplete" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getautootallyproject&itemtype=0" swidth="300" value="<%=DJNGItemCode %>"  /> 
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                
            </tr>--%>
        </table>
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="MacModel/OInspectionAdd.aspx?t=<%=t %>" target="navTab" title="添加" rel="OInspectionAdd"><span>添加</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.修改))
             {%>
            <li><a class="edit" href="MacModel/OInspectionEdit.aspx?Id={sid_user}&t=<%=t %>" target="navTab" title="修改" rel="OInspectionAdd"><span>修改</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=deleteoinspection&Id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           
            <li><a class="icon" href="MacModel/OInspectionView.aspx?Id={sid_user}" target="navTab" title="查看" rel="OInspectionView" fresh="true"><span>查看</span></a></li>
      <%--    <% if (HasPower(IHISCETeim.Web.Permission.导出))
             {%>
          <li><a class="icon" href="MacModel/ExeclOInspectionData.aspx?MachineType=<%=MachineType %>&SerialNumber=<%=SerialNumber %>&DownlineDateFrom=<%=DownlineDateFrom %>&DownlineDateTo=<%=DownlineDateTo %>&DJNGItemCode=<%=DJNGItemCode %>" target="_blank" title="确定要导出吗?"><span>导出</span></a></li>
            <%} %>--%>

            <% if (HasPower(IHISCETeim.Web.Permission.导出) && t=="1")
             {%>
            <li><a class="add" href="MacModel/ExeclOinspectionNGList.aspx?MachineType=<%=MachineType %>&SerialNumber=<%=SerialNumber %>&DownlineDateFrom=<%=DownlineDateFrom %>&DownlineDateTo=<%=DownlineDateTo %>" target="_blank"   title="导出"><span>导出NG项</span></a></li>
           <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="115">
        <thead>
            <tr  >                
                <th width="80"  orderField="MachineType" class="asc">
                    机型
                </th>
                <th  orderField="SerialNumber" class="asc">
                    机号
                </th>
                <th  orderField="EngineNumber" class="asc">
                    发动机号
                </th>
                <th orderField="CheckDate" class="asc">
                    检查日期
                </th>
                <th >
                    司机室编号
                </th>
             
               <%-- <th >
                    下线日期
                </th>  --%>        
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("OInspectionID") %>">
				<td><%# Eval("MachineType")%></td>
				<td><a target="navTab" title="查看作业日报表" rel="viewdailyserver" fresh="true" href="MacModel/ODailyList.aspx?SerialNumber=<%# Eval("SerialNumber") %>"><%# Eval("SerialNumber")%></a></td>
				<td><%# Eval("EngineNumber")%></td>
                <td><%# Convert.ToDateTime(Eval("CheckDate")).ToString("yyyy-MM-dd")%></td>
				<td><%# Eval("CabNnumber")%></td>
				<%--<td><%# Eval("DownlineDate")%></td>--%>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
